﻿using System;

namespace CoffeeVendingMachine
{
    class CoffeeVendingMachine
    {
        static void Main()
        {
            ushort n1 = ushort.Parse(Console.ReadLine());
            ushort n2 = ushort.Parse(Console.ReadLine());
            ushort n3 = ushort.Parse(Console.ReadLine());
            ushort n4 = ushort.Parse(Console.ReadLine());
            ushort n5 = ushort.Parse(Console.ReadLine());

            float tray1 = 0.05F;
            float tray2 = 0.10F;
            float tray3 = 0.20F;
            float tray4 = 0.50F;
            float tray5 = 1.00F;

            float total = (n1 * tray1) + (n2 * tray2) + (n3 * tray3) + (n4 * tray4) + (n5 * tray5);

            float amount = float.Parse(Console.ReadLine());

            float price = float.Parse(Console.ReadLine());

            float change = amount - price;
            float moneyLeft = total - change;
            if (change < 0)
            {
                change = -1 * change;
            }
            if (moneyLeft < 0)
            {
                moneyLeft = -1 * moneyLeft;
            }

            if (amount <= total && amount >= price)
            {
                Console.WriteLine("Yes {0:F2}", moneyLeft);
            }
            else if (amount < price)
            {
                Console.WriteLine("More {0:F2}", change);
            }
            else if (amount >= price && total < change)
            {
                Console.WriteLine("No {0:F2}", moneyLeft);
            }
        }
    }
}
